package com.repository;

import com.entity.ElderInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ElderInfoRepository extends JpaRepository<ElderInfo, Integer> {
    List<ElderInfo> findByElderNameContaining(String name);

    List<ElderInfo> findAllByStatusIs(Integer status);

    ElderInfo findByIdCard(String idCard);
}